package com.oxygen.design.template;

import com.oxygen.design.template.bean.Cricket;
import com.oxygen.design.template.bean.Football;
import com.oxygen.design.template.bean.Game;

/**
 * @author wangjie
 * @title: TemplatePatternDemo
 * @description: TODO
 * @date 2022/3/12 10:57 PM
 **/
public class TemplatePatternDemo {
    public static void main(String[] args) {

        Game game = new Cricket();
        game.play();
        System.out.println();
        game = new Football();
        game.play();
    }
}
